<?php
// +----------------------------------------------------------------------
// | Author: yaoyihong <510974211@qq.com>
// +----------------------------------------------------------------------

namespace app\api\controller;

use \tpfcore\Core;
use app\common\controller\ControllerBase;

class ApiBase extends ControllerBase
{
	public $api_version;
	public function __construct(){
		header("Access-Control-Allow-Origin: *");
		parent::__construct();
		$result = Core::loadModel("ApiBase")->api_init($this->param);
		$result[0]==-1 && $this->jump($result);
		$this->api_version = preg_replace("/(\d).(\d).(\d)/", "$1.$2", $this->param['api_version']);
	}
}